package com.ljx.recruitment.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-11-17  15:35
 */
@Getter
@AllArgsConstructor
public enum ThemeEnum {

    MAIN_TITLE("project_title", "默认标题", "站点标题"),
    CAMPUS_TITLE("campus_title", "xxxx届秋招火热进行中", "首页校招主标题"),
    CAMPUS_OOP("campus_oop", "面向对象：2025届统招本科及以上学历应届毕业生", "首页校招副标题"),
    SOCIAL_TITLE("social_title", "社招进行中", "首页社招主标题"),
    SOCIAL_OOP("social_oop", "面向对象：所以技术人员", "首页社招副标题"),
    MENUS("menus", "", "导航菜单");

    private String key;
    private String value;
    private String desc;

    private static Map<String, String> cache;
    static {
        cache = Arrays.stream(ThemeEnum.values()).collect(Collectors.toMap(ThemeEnum::getKey, ThemeEnum::getValue));
    }

    public static Map<String, String> getCacheMap(){
        return cache;
    }

}
